package com.hfi;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author ChangLiang
 * @date 2019/6/10
 */
public class MainThread {
    Logger logger = LoggerFactory.getLogger(MainClass.class);

    @Test
    public void test() throws InterruptedException {
        Thread t = new Thread(new LiftOff());
        t.start();
        t.setName("lift off thread");
        logger.info("waiting for liftoff");
        Thread.sleep(10000);
    }
}
